<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" type="text/css" href="/static/muban/static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="/static/muban/static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="/static/muban/lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="/static/muban/static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="/static/muban/static/h-ui.admin/css/style.css" />
    <title>信息列表</title>

</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 信息管理 <span class="c-gray en">&gt;</span> 查询 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>

<div class="page-container">
    <div class="cl pd-5 bg-1 bk-gray mt-20">
        <span class="l"><a href="javascript:;" onclick="datadel()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>
            <a class="btn btn-primary radius" href="/admin/numbr/create"><i class="Hui-iconfont">&#xe600;</i> 添加信息</a></span>

        <!-------------------------------------------------------------------------------------------------->
        <form action="/admin/numbr/index" method="GET">&nbsp;&nbsp;&nbsp;&nbsp;
            姓名: <input type="text" name="name">&nbsp;&nbsp;
            班级: <select name="cid">
                <option value="">--请选择--</option>
                <option value="1">1701</option>
                <option value="2">1702</option>
                <option value="3">1703</option>
                <option value="4">1704</option>
            </select>
            &nbsp;&nbsp;
            <input type="submit" value="查询" class="submit">
        </form>
        <span class="r">共有数据：<strong>{$count}</strong> 条</span>
    </div>
    <div class="mt-20">
        <table class="table table-border table-bordered table-bg table-hover table-sort">
            <thead>
            <tr class="text-c">
                <th width="40"><input name="" type="checkbox" value=""></th>
                <th width="80">楼栋编号</th>
                <th width="80">楼栋信息</th>
                <th width="80">楼栋地址</th>
                <th width="80">楼栋图片</th>
                <th width="100">操作</th>
            </tr>
            </thead>
            <tbody>
            {foreach $res as $res}
            <tr class="text-c">
                <td><input name="" type="checkbox" value=""></td>
                <td scope="row">{$res.n_id}</td>
                <td>{$res.n_name}</td>
                <td>{$res.n_address}</td>
                <td><img src="/uploads/{$res.n_photo}" width="40px"/></td>
                <td><a onclick=" tishi()" class="btn btn-primary radius"href="delete?n_id={$res.n_id}">
                    <i class="glyphicon glyphicon-edit icon-white"></i>
                    删除</a>&nbsp
                    <a class="btn btn-primary radius" href="{:url('update')}?n_id={$res.n_id}">
                        <i class="glyphicon glyphicon-edit icon-white"></i>
                        修改</a>&nbsp
                </td>
            </tr>
            {/foreach}
            <tr>
                <!--<td colspan="3"></td>-->
                <td colspan="6" class="suojin">{$page|raw}</td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
<style>
    .suojin ul{margin-left: 500px;}
    input[type=submit]{
        width: 60px;
        height: 30px;
        color:#6dbfff;
        background-color: red;
    }
    .pagination li {float:left ;width:20px;list-style:none;}
</style>

<!--_footer 作为公共模版分离出去-->
<script>
    function member_add(title,url,w,h){
        layer_show(title,url,w,h);
    }
</script>
<script type="text/javascript" src="/static/muban/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/static/muban/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/static/muban/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="/static/muban/static/h-ui.admin/js/H-ui.admin.js"></script>
<script type="text/javascript" src="/static/muban/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="/static/muban/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/static/muban/lib/laypage/1.2/laypage.js"></script>
<script>
    function tishi() {
        if (!confirm("确认要删除？")) {
            window.event.returnValue = false;
        }

    }
</script>
</body>
</html>